package com.ajx.blog.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @Author: 姜东浩
 * @Date: 2022-04-22 23:52:23
 * 
 * @Description: 博客类型
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "content_type")
public class ContentType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid; // 博客类型主键id

    @TableField(value = "typename")
    private String typename; // 类型名称

    @TableField(value = "status")
    private String status; // 类型状态

    @TableField(value = "pid")
    private Integer pid; // 父评论id

}
